x86/pv-shim: correctly ignore empty onlining requests
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Mon, 31 Oct 2022 12:26:59 +0000 (13:26 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 31 Oct 2022 12:26:59 +0000 (13:26 +0100)
commit08f6c88405a4406cac5b90e8d9873258dc445006
treedc6d5b62c9a51eb7df216a38493f0987f54e4503
parent426a8346c01075ec5eba4aadefab03a96b6ece6a
x86/pv-shim: correctly ignore empty onlining requests

Mem-op requests may have zero extents. Such requests need treating as
no-ops. pv_shim_online_memory(), however, would have tried to take 2³²-1
order-sized pages from its balloon list (to then populate them),
typically ending when the entire set of ballooned pages of this order
was consumed.

Note that pv_shim_offline_memory() does not have such an issue.

Fixes: b2245acc60c3 ("xen/pvshim: memory hotplug")
Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: 9272225ca72801fd9fa5b268a2d1c5adebd19cd9
master date: 2022-10-28 15:47:59 +0200
xen/arch/x86/pv/shim.c